﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LevelEditor
{
    public partial class amountofplayerSpawningForm : Form
    {
        private LevelEditor lEditor;
        public amountofplayerSpawningForm(LevelEditor lEditor)
        {
            this.lEditor = lEditor;
            InitializeComponent();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            lEditor.xmlHandler.amountofPlayersOnMap = amountofplayers.Text;
            lEditor.amountofPlayersOnMapText.Text = "Amount of players in this level " + amountofplayers.Text;
        }
    }
}
